import service from "@/api/index";
//赛事项目规则相关接口
const COMPETI_TION_RULE_INFO_API = "/api/CompetitionRuleInfo/";
export default {
	GetCompetitionRuleInfoListApi: (params: object) => {
		//获取竞争规则信息列表
		return service.post(`${COMPETI_TION_RULE_INFO_API}GetCompetitionRuleInfoList`, params);
	},
	AddCompetitionRuleInfoApi: (params: object) => {
		//添加比赛规则信息
		return service.post(`${COMPETI_TION_RULE_INFO_API}AddCompetitionRuleInfo`, params);
	},
	CompetitionRuleInfoDetailsApi: (params: string) => {
		//竞争规则信息详情
		return service.post(`${COMPETI_TION_RULE_INFO_API}CompetitionRuleInfoDetails`, { Id: params });
	},
	UpdateCompetitionRuleInfoApi: (params: object) => {
		//更新比赛规则信息
		return service.post(`${COMPETI_TION_RULE_INFO_API}UpdateCompetitionRuleInfo`, params);
	},
	UpdateCompetitionRuleInfoEnableOrDisableApi: (params: string) => {
		//更新竞争规则信息启用或禁用
		return service.post(`${COMPETI_TION_RULE_INFO_API}UpdateCompetitionRuleInfoEnableOrDisable`, { Id: params });
	}
};
